<?php
namespace plugin\tuPay\app\services;

class ConfigService
{
    static function getPayConfig($value=''){
        $payTypes = [
            ['name'=>'支付宝','value'=>'Alipay'],
            ['name'=>'微信','value'=>'Wechat'],
            ['name'=>'码支付','value'=>'CodePay'],
            ['name'=>'欧易','value'=>'OkxUsdt'],
        ];
        if($value){
            foreach ($payTypes as $item){
                if($item['value']==$value){
                    return $item['name'];
                }
            }
        }
        return $payTypes;
    }
}